package text;

public class Rectangle extends Shape{
    double r;
    public Rectangle(double r){
        this.r=r;
    }
    public double area(){
        return Math.PI*r*r;
    };
    public double perimeter(){
        return 2*Math.PI*r;
    }

}
